package com.wondream.myframework.app.common.view;

import org.springframework.web.servlet.view.AbstractView;

import javax.servlet.http.HttpServletRequest;

/**
 * 父类视图
 */
public abstract class CfssAbstractView extends AbstractView {

    public abstract String getView();

    protected boolean isIE(HttpServletRequest request) {
        return (request.getHeader("USER-AGENT").toLowerCase().indexOf("msie") > 0 ||
                request.getHeader("USER-AGENT").toLowerCase().indexOf("rv:11.o") > 0) ? true : false;
    }
}
